package cn.fzkj.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class PaymentController {

    @Value("${server.port}")
    String port;

    @GetMapping(value = "/payment/consul")
    public String get(){
        return "springcloud consul -> " + port + "\t" + UUID.randomUUID().toString();
    }

}
